hello: 1.hello.cpp
	g++ 1.hello.cpp -o hello -std=c++17 /usr/local/lib64/libredis++.a -L/usr/lib64 -lhiredis  -pthread

common: 2.common.cpp
	g++ $^ -o $@ -std=c++17 /usr/local/lib64/libredis++.a -L/usr/lib64 -lhiredis  -pthread

string: 3.string.cpp
	g++ $^ -o $@ -std=c++17 /usr/local/lib64/libredis++.a -L/usr/lib64 -lhiredis  -pthread

list: 4.list.cpp
	g++ $^ -o $@ -std=c++17 /usr/local/lib64/libredis++.a -L/usr/lib64 -lhiredis  -pthread

set: 5.set.cpp
	g++ $^ -o $@ -std=c++17 /usr/local/lib64/libredis++.a -L/usr/lib64 -lhiredis  -pthread

hash: 6.hash.cpp
	g++ $^ -o $@ -std=c++17 /usr/local/lib64/libredis++.a -L/usr/lib64 -lhiredis  -pthread

zset: 7.zset.cpp
	g++ $^ -o $@ -std=c++17 /usr/local/lib64/libredis++.a -L/usr/lib64 -lhiredis  -pthread

.PHONY:clean
clean:
	rm -r hello
	rm -r string
	rm -r common
	rm -r list
	rm -r set
	rm -r hash
	rm -r zset